import request from '/@/utils/request';

/**
 * 获取org列表
 * @method page
 */
export function page(params: object) {
	return request({
		url: '/api/v1/smoke/org/getOrg',
		method: 'post',
		data: params,
	});
}

/**
 * 添加
 * @method add
 */
export function add(data: object) {
	return request({
		url: '/api/v1/smoke/org/add',
		method: 'post',
		data: data,
	});
}

/**
 * 更新
 * @method update
 */
export function update(data: object) {
	return request({
		url: '/api/v1/smoke/org/update',
		method: 'put',
		data: data,
	});
}


/**
 * 删除
 * @method del
 */
export function del(data: object) {
	return request({
		url: '/api/v1/hm/org/del',
		method: 'delete',
		data: data,
	});
}
